﻿using JetBrains.ReSharper.Psi.CSharp.Tree;
using Moq;

namespace TwinsTests.Classes.Tests.Hanlder.Tests
{
    public class CreaterExpressionStatement
    {
        public IExpressionStatement CreateExpressionStatement()
        {
            var createrInvocationExpression = new CreaterInvocationExpression();
            var expressionStatement = new Mock<IExpressionStatement>();
            expressionStatement.Setup(m => m.Expression).Returns(
                createrInvocationExpression.CreateInvocationExpression("Console.Read"));
            return expressionStatement.Object;
        } 
    }
}